home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-06 | 5.3 KB | 175 lines | [TEXT/KAHL] |
- After generating code for the first time, for your new prototype, follow this method to
- get THINK C++ up and working for you:
-
- CREATING A THINK PROJECT...
-
- • Find the 'Sources" folder made by the Code Generator.
- • Open the "Sources" folder.
- • Open the "mm" folder inside the "Sources" folder.
- • Double click on any of the files you see there, this will automatically launch THINK.
- • When THINK brings up a save dialog, it is asking you to name the new THINK project you
- are making. Change the folder level to one up, the "Sources" folder instead of the "mm"
- folder. Now enter your project name, using Option-P for the "π" part of the name, e.g. MyProgram.π
- • Uncheck the "Folder" checkbox.
- • Select the C++ type of project.
- • Close the one file that THINK opened for you.
- • Select the project window.
-
-
-
- ADDING Gooey SPECIFIC FILES...
-
- • Click on the "main.cp" file name.
-
- • Under the "Source" menu, select the "Add Files..." menu item.
-
- • Open the "mm" folder, from the Add dialog.
-
- • Press the "Add All" button, this will select every file in this "mm" dialog.
-
- • Press the "Done" button, this will now add them all to your project.
-
- • Make the project window taller if necessary, for extra empty space at the bottom.
-
- • Click on the "main.cp" file name.
-
- • Under the "Source" menu, select the "Remove" menu item.
-
- • Press the mouse below the "Totals" message line. This selects a new segment for the next
- files to go into.
-
-
-
- ADDING user SPECIFIC FILES...
-
- • Under the "Source" menu, select the "Add Files..." menu item.
-
- • Go up one level, from the "mm" folder into the "Source" folder.
-
- • Open the "resources" folder, from the Add dialog.
-
- • Select the file starting with "Rez_" and ending in ".r". This is the Rez file.
-
- • Press the "Add" button.
-
- • Go up one level, from the "resources" folder into the "Source" folder.
-
- • Open the "u" folder, from the Add dialog.
-
- • Press the "Add All" button, this will select every file in this "u" dialog.
-
- • Press the "Done" button, this will now add them all to your project.
-
-
-
-
- ADDING THINK LIBRARIES...
-
- • Now go to "CPlusLib" file and select it.
- This tells THINK C that more files added will go into that segment.
-
- • Under the "Source" menu, select the "Add Files..." menu item.
-
- • Locate your THINK C folder. Locate the "Mac Libraries" folder, open it up.
-
- • Select "MacTraps" and press the "Add" button.
-
- • Select "MacTraps2" and press the "Add" button.
-
- • Press the "Done" button, this will now add them all to your project.
-
-
-
- SETTING UP THE PROJECT...
-
- • Under the "Project" menu, select the "Set Project Type..." menu item.
-
- • Change the partition size to something larger, like 1024K.
-
- • Change the "SIZE Flags" to be "5A80" to start off with.
-
- • Press the "OK" button.
-
-
-
- • Set all your THINK C++ preferences.
-
-
-
-
-
- PRECOMPILED HEADERS...
-
- • Open the "mmHeaders.cp" file. Click on this file to select it.
-
- • Under the "Source" menu select the "Precompile…" menu item.
-
- • Save the precompiled headers under the "mmHeaders68K" name.
-
- • Close the "mmHeaders.cp"file.
-
- • Set your THINK C++ prefix preferences to say:
- #include "mmHeaders68K"
-
-
-
-
- • Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile
- all the files.
-
- • If the main segment, the top one, is larger than 32K then create new segments and drag
- some of the files into it.
-
- • Under the "Project" menu, select the "Check Link" menu item. This will tell you if any
- files are missing.
-
-
-
-
-
- CODING...
-
- • Make your changes to any file that does not start with "mm". All the other files hook into
- the "mm" files to provide you with access.
-
-
-
-
- RE-GENERATION. After making changes or additions to your prototype.
-
- • Generate all sources again. This will make a new folder named "Sources" or "Sources" with
- a number after it if that folder alreay exists.
-
- • Drag the "mm" folder from the newly generated folder into your working folder.
- NOTE: This replaces your older "mm" folder. If you have made changes to any "mm" files, you
- should never need to, then drag them into another folder first.
-
- • Drag the "mmXXX.rsrc" file from the new "resources" folder into your working "resources" folder.
-
- • Drag the "XXXX.π.rsrc" file from your "Sources" folder into the trash can, you want THINK C to
- make a new one using the new resource file.
-
- • Empty the trash.
-
-
- If you added a new Window, Dialog, or Alert then drag that corresponding file from the new "u"
- folder into your working "u" folder. If you are asked about replacing a file then say "No", you
- got the wrong file.
-
-
- If you added a menu then open your "menuXXX.h" file and the new "menuXXX.h". Copy over the prototype
- for the new menu. Open your "menuXXX.c" file and the new "menuXXX.c". Copy over the routine for the new menu.
-
- If you added a button or other control then let THINK find any additional routines for you, in error messages.
-
-
-
- • Under the "Project" menu, select the "Remove Objects" menu item. This will make sure that all files
- will be recompiled.
-
- • Under the "Project" menu, select the "Bring Up To Date" menu item. This will compile all the files.
-
- If there are errors involving new routines, like a checkbox handler routine where there were no check
- boxes before. Open the old corresponding "xxx.h" file, from the "u" folder. Open the new "xxx.h" file,
- copy the new prototype over. Open the "xxx.c" files and copy over the new routine.
-